package com.glodon.paas.qto.model;

import com.glodon.paas.job.model.TaskStatus;

/**
 * 代表job server反馈的结果.
 * 
 * @author botao.liao
 * 
 */
public class TaskProgress {
    private String taskId;
    private Integer progress = 0;
    private String output;
    private String message;
    private String filename;
    private TaskStatus status;

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String transactionId) {
        this.taskId = transactionId;
    }

    public Integer getProgress() {
        return progress;
    }

    public void setProgress(Integer progress) {
        this.progress = progress;
    }

    public String getOutput() {
        return output;
    }

    public void setOutput(String param) {
        this.output = param;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }
    
    public TaskStatus getStatus() {
        return status;
    }
    
    public void setStatus(TaskStatus status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "TaskProgress [taskId=" + taskId + ", progress=" + progress + ", output=" + output + ", status="
                + status + "]";
    }

}
